<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
   //查看一下，本地有没有这个cname cookie

   if (isset($_COOKIE["cname"]))

        $varname=$_COOKIE["cname"];
   else
        $varname="";

?>
<?php
   //查看一下，本地有没有这个cname cookie

   if (isset($_COOKIE["time"]))

        $vartime=$_COOKIE["time"];
   else
        $vartime="";

?>
<html>
    <head>
        <meta charset="UTF-8">
        <title>登录页面</title>
        <link href="css/css1.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="login">
            <form action="dologin.php" method="post">
                <ul>
                    <li>用户名：<input class="input_txt" type="text" name="username" value="<?php echo $varname; ?>" />  </li>
                    <li>密　码：<input class="input_txt" type="password" name="password" value="请输入密码"/>  </li>
                    <li><input type="checkbox" name="re"/>记住用户名  </li>
                </ul>
               
                <p>你上次登录的时间<?php echo $vartime; ?></p>
                <input class="submit" type="submit" value="登　　录"/>
                <input class="submit" type="submit" value="注    册"/>
                <br></br>
                <p href=""> 登录遇到问题|立即注册</p><br></br>
            </form> 
        </div>
    </body>
</html>
